package com.cldz.feign;

import com.cldz.response.support.ServerResponse;
import com.cldz.config.FeignConfiguration;
import com.cldz.common.dto.req.DevChannelDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @ Author     ：lixiao.
 * @ Date       ：Created in 13:31 2018/12/25
 * @ Description：
 * @ Modified By：
 */
@FeignClient(name = "data" ,configuration = FeignConfiguration.class)
public interface DevChannelFeign {

    @RequestMapping(value = "/regulatChannel/{devID}",method = RequestMethod.GET)
    ServerResponse getRegulatChannel(@PathVariable(name = "devID")Integer devID);

    @RequestMapping(value = "/controlChannel/{devID}",method = RequestMethod.GET)
    ServerResponse getControlChannel(@PathVariable(name = "devID")Integer devID);

    @RequestMapping(value = "/valueMeanListWithDevID",method = RequestMethod.GET)
    ServerResponse getValueMeanListWithDevID(DevChannelDto devChannelDto);

    @RequestMapping(value = "/valueMeanListWithDevType",method = RequestMethod.GET)
    ServerResponse getValueMeanListWithDevType(DevChannelDto devChannelDto);

    @RequestMapping(value = "/devChannels",method = RequestMethod.GET)
    ServerResponse getDevChannels(DevChannelDto devChannelDto);

    @RequestMapping(value = "/devChannelsWithType",method = RequestMethod.GET)
    ServerResponse getDevChannelsWithTypeID(DevChannelDto devChannelDto);

    @RequestMapping(value = "/getSpecifyChannel",method = RequestMethod.GET)
    ServerResponse getSpecifyChannel(DevChannelDto devChannelDto);

    @RequestMapping(value = "/baseChannels",method = RequestMethod.GET)
    ServerResponse getBaseChannels(DevChannelDto devChannelDto);
}
